using System;
using UnityEngine;

namespace Locomotion
{
    public class GameOverDetector : MonoBehaviour
    {
        public event Action GameOver;
        
        
        private void OnBecameInvisible()
        {
            GameOver?.Invoke();
        }
    }
}
